package FactoryMethod;

import org.junit.Test;

public class ApiTest {
//    int sharedVariable = 0;

    @Test
    public void factoryMethodPattern(){
        PenCore penCore;
        Ballpen ballpen;
        ballpen = new BlueBallpen();
        penCore = ballpen.getPencore();
        penCore.writeWord("Hello,师两万");
    }

}
